package com.xiaoyu.lanling.feature.moment.data

import `in`.srain.cube.util.UTUtil
import android.os.Bundle
import com.xiaoyu.lanling.feature.moment.model.MomentItem

object MomentTracker {

    fun like(moment: MomentItem) {
        val params = Bundle()
        params.putString("from", moment.source)
        UTUtil.getInstance().logEvent("like_moment", params)
        UTUtil.getInstance().flushLogEvent()
    }

    fun publish() {
        UTUtil.getInstance().logEvent("post_moment")
        UTUtil.getInstance().flushLogEvent()
    }
}